package com.ruoyi.mall.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抢购区仓库对象 mall_time_warehouse
 *
 * @author ruoyi
 * @date 2022-02-23
 */
public class MallTimeWarehouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 抢购仓库ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 是否开放：0-不开放  1-开放 */
    @Excel(name = "是否开放：0-不开放  1-开放")
    private Integer isOpen;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImg;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "封面图", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 开始前X小时 */
    @Excel(name = "开始前X小时")
    private Integer beforeTime;

    /** 活动后X小时 */
    @Excel(name = "活动后X小时")
    private Integer afterTime;

    /** 抢购次数 */
    @Excel(name = "抢购次数")
    private Integer robNum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setIsOpen(Integer isOpen)
    {
        this.isOpen = isOpen;
    }

    public Integer getIsOpen()
    {
        return isOpen;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setCoverImg(String coverImg)
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg()
    {
        return coverImg;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }
    public void setBeforeTime(Integer beforeTime)
    {
        this.beforeTime = beforeTime;
    }

    public Integer getBeforeTime()
    {
        return beforeTime;
    }
    public void setAfterTime(Integer afterTime)
    {
        this.afterTime = afterTime;
    }

    public Integer getAfterTime()
    {
        return afterTime;
    }
    public void setRobNum(Integer robNum)
    {
        this.robNum = robNum;
    }

    public Integer getRobNum()
    {
        return robNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("title", getTitle())
                .append("isOpen", getIsOpen())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("coverImg", getCoverImg())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleteTime", getDeleteTime())
                .append("beforeTime", getBeforeTime())
                .append("afterTime", getAfterTime())
                .append("robNum", getRobNum())
                .toString();
    }
}
